home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / c / icu-1.3.1 / icuapps / locexp / tools / genindex.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2000-02-23  |  363b  |  14 lines

  1. #!/bin/sh
  2. echo "# Generated by genIndex.sh " `date` "@" `hostname`
  3. echo "index"
  4. echo "{"
  5. echo "    InstalledLocales"
  6. echo "    {"
  7. # Following line generates index of ALL .txt files
  8. #    cat *.txt | grep "^[a-z]" | sed "s/\([a-zA-Z_]*\).*/         \1,/" | sort
  9.     cat $@ | grep "^[a-z]" | sed "s/\([a-zA-Z_]*\).*/         \1,/" | sort
  10. echo "    }"
  11. echo "}"
  12.  
  13.     
  14.